package xue;

import java.util.Objects;
import java.util.UUID;

public class Studnet {
     private int id;
     private String addr;
     private position y;
     public Studnet(int id,String addr,position y){
         this.id=id;
         this.addr=addr;
         this.y=y;
     }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Studnet studnet = (Studnet) o;
        return id == studnet.id && Objects.equals(addr, studnet.addr) && Objects.equals(y, studnet.y);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, addr, y);
    }

    public static void main(String[] args) {
        String id=UUID.randomUUID().toString();
        System.out.println(id.length());
        System.out.println(id);

    }
}
